.class public Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;
.super Lcom/nostra13/universalimageloader/core/ImageLoader;
.source "CustomImageLoader.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)V
    .locals 0

    .line 55
    invoke-direct {p0}, Lcom/nostra13/universalimageloader/core/ImageLoader;-><init>()V

    .line 56
    invoke-virtual {p0, p1, p2}, Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;->initLoader(Landroid/content/Context;Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 44
    invoke-direct {p0}, Lcom/nostra13/universalimageloader/core/ImageLoader;-><init>()V

    .line 45
    invoke-virtual {p0, p1, p2}, Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;->initLoader(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method private getOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .locals 2

    .line 115
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    const/4 v1, 0x1

    .line 116
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 117
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisk(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 118
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->considerExifParams(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    const v1, 0x7f080105

    .line 119
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 120
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->IN_SAMPLE_POWER_OF_2:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 121
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    .line 122
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    .line 123
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 124
    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public initLoader(Landroid/content/Context;Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)V
    .locals 4

    .line 93
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;->getOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    .line 94
    invoke-virtual {p0}, Lcom/nostra13/universalimageloader/core/ImageLoader;->isInited()Z

    move-result v1

    if-nez v1, :cond_1

    .line 95
    new-instance v1, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    invoke-direct {v1, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;-><init>(Landroid/content/Context;)V

    .line 96
    invoke-virtual {v1, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->defaultDisplayImageOptions(Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/16 v0, 0x3e8

    .line 97
    invoke-virtual {v1, v0, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->memoryCacheExtraOptions(II)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    .line 98
    invoke-virtual {v1, p2}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->diskCache(Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    new-instance v0, Lcom/nostra13/universalimageloader/core/download/BaseImageDownloader;

    const/16 v2, 0x4e20

    const/16 v3, 0x7530

    invoke-direct {v0, p1, v2, v3}, Lcom/nostra13/universalimageloader/core/download/BaseImageDownloader;-><init>(Landroid/content/Context;II)V

    .line 99
    invoke-virtual {v1, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->imageDownloader(Lcom/nostra13/universalimageloader/core/download/ImageDownloader;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/high16 p1, 0x700000

    .line 100
    invoke-virtual {v1, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->memoryCacheSize(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/4 p1, 0x4

    .line 101
    invoke-virtual {v1, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->threadPoolSize(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    if-nez p2, :cond_0

    const/16 p1, 0x6e

    .line 103
    invoke-virtual {v1, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->diskCacheFileCount(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    .line 105
    :cond_0
    invoke-virtual {v1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->build()Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/nostra13/universalimageloader/core/ImageLoader;->init(Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;)V

    :cond_1
    return-void
.end method

.method public initLoader(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    .line 68
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;->getOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    .line 70
    invoke-virtual {p0}, Lcom/nostra13/universalimageloader/core/ImageLoader;->isInited()Z

    move-result v1

    if-nez v1, :cond_0

    .line 72
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 74
    new-instance p2, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    invoke-direct {p2, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;-><init>(Landroid/content/Context;)V

    .line 75
    invoke-virtual {p2, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->defaultDisplayImageOptions(Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/16 v0, 0x3e8

    .line 76
    invoke-virtual {p2, v0, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->memoryCacheExtraOptions(II)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/high16 v0, 0x700000

    .line 77
    invoke-virtual {p2, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->memoryCacheSize(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    new-instance v0, Lcom/nostra13/universalimageloader/cache/disc/impl/UnlimitedDiskCache;

    invoke-direct {v0, v1}, Lcom/nostra13/universalimageloader/cache/disc/impl/UnlimitedDiskCache;-><init>(Ljava/io/File;)V

    .line 78
    invoke-virtual {p2, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->diskCache(Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    new-instance v0, Lcom/nostra13/universalimageloader/core/download/BaseImageDownloader;

    const/16 v1, 0x1388

    const/16 v2, 0x4e20

    invoke-direct {v0, p1, v1, v2}, Lcom/nostra13/universalimageloader/core/download/BaseImageDownloader;-><init>(Landroid/content/Context;II)V

    .line 79
    invoke-virtual {p2, v0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->imageDownloader(Lcom/nostra13/universalimageloader/core/download/ImageDownloader;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    const/4 p1, 0x4

    .line 80
    invoke-virtual {p2, p1}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->threadPoolSize(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    .line 81
    invoke-virtual {p2}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->build()Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;

    move-result-object p1

    .line 82
    invoke-virtual {p0, p1}, Lcom/nostra13/universalimageloader/core/ImageLoader;->init(Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;)V

    :cond_0
    return-void
.end method
